<?php
/**
 * Created by IntelliJ IDEA.
 * User: liuxin
 * Date: 2018/7/23
 * Time: 下午1:54
 */

namespace app\admin\controller;


use think\Controller;
use think\Request;
class Base extends Controller
{
    public function _initialize()
    {
        parent::_initialize();
        if( !session('user.id')){
            $this->redirect('@admin/login');
        }
    }
}